/**
 * 测试表头
 */
const testColumns = [
  {
    type: 'check',
    eventKey: '',
    width: 40
  },
  {
    title: '序',
    type: 'index',
    width: 40,
    className: 'tb-row-cs',
    eventKey: 'index'
  },
  {
    title: '姓名',
    lock: 0,
    key: 'name',
    // node 不排序
    type: 'none'
  },
  {
    title: '年龄',
    lock: 1,
    key: 'age',
    type: 'int',
    width: 100
  },
  {
    title: '地址',
    key: 'address',
    type: 'string',
    /**
     * 事件触发
     *
     */
    eventKey: 'address',
    width: 400
  },
  {
    title: '日期',
    key: 'join',
    type: 'date'
  },
  {
    title: '日期',
    key: 'join',
    type: 'date4'
  },
  {
    title: '日期',
    key: 'join',
    type: 'date3'
  },
  {
    title: '日期',
    key: 'join',
    type: 'date2'
  },
  {
    title: '日期',
    key: 'join',
    type: 'date1'
  }
];

const testTbCol = [
  {
    type: 'check',
    eventKey: 'age', //绑定的值
    width: 40
  },
  {
    title: '序',
    type: 'index',
    width: 40,
    className: 'tb-row-cs',
    eventKey: 'index'
  },
  { title: '分类', key: 'CellType', type: 'int32' },
  { title: '收藏', key: 'Favor', type: 'string' },
  {
    title: '姓名',
    key: 'name',
    // node 不排序
    type: 'none',
    eventKey: 'name'
  },
  {
    title: '年龄',
    key: 'age',
    type: 'int',
    width: 100
  },
  {
    title: '日期',
    key: 'join',
    type: 'date'
  },
  {
    title: '地址',
    key: 'address',
    type: 'string',
    /**
     * 事件触发
     *
     */
    eventKey: 'address',
    width: 400,
    className: 'tb-row-cs'
  },
  {
    title: '日期',
    key: 'join',
    type: 'date4'
  },
  {
    title: '日期',
    key: 'join',
    type: 'date3'
  },
  {
    title: '日期',
    key: 'join',
    type: 'date2'
  },
  {
    title: '日期',
    key: 'join',
    type: 'date1'
  }
];

/** 测试表格数据 */
const testTbData = [
  {
    Favor: '是',
    CellType: 1,
    name: 'John Start',
    age: 18,
    address: '<b>New York</b> No. 1 Lake Park',
    join: '2016-10-03'
  },
  {
    Favor: '否',
    CellType: 2,
    name: 'Jim Green',
    age: 21,
    address: 'London No. 1 Lake Park',
    join: '2016-10-01'
  },
  {
    Favor: '否',
    CellType: 3,
    name: 'Joe Black',
    age: 34,
    address: 'Sydney No. 1 Lake Park',
    join: '2016-10-02'
  },
  {
    Favor: '是',
    CellType: 1,
    name: 'Jon Snow',
    age: 40,
    address: 'Ottawa No. 2 Lake Park',
    join: '2016-10-04'
  },
  {
    Favor: '是',
    CellType: 1,
    name: 'John Brown',
    age: 18,
    address: '<b>New York</b> No. 1 Lake Park',
    join: '2016-10-03'
  },
  {
    Favor: '是',
    CellType: 1,
    name: 'Jim Green',
    age: 24,
    address: 'London No. 1 Lake Park',
    join: '2016-10-01'
  },
  {
    Favor: '是',
    CellType: 1,
    name: 'Joe Black',
    age: 30,
    address: 'Sydney No. 1 Lake Park',
    join: '2016-10-02'
  },
  {
    Favor: '是',
    CellType: 1,
    name: 'Jon Snow',
    age: 26,
    address: 'Ottawa No. 2 Lake Park',
    join: '2016-10-04'
  },
  {
    Favor: '是',
    CellType: 1,
    name: 'John Brown',
    age: 18,
    address: '<b>New York</b> No. 1 Lake Park',
    join: '2016-10-03'
  },
  {
    Favor: '是',
    CellType: 1,
    name: 'Jim Green',
    age: 24,
    address: 'London No. 1 Lake Park',
    join: '2016-10-01'
  },
  {
    Favor: '是',
    CellType: 1,
    name: 'Joe Black',
    age: 30,
    address: 'Sydney No. 1 Lake Park',
    join: '2016-10-02'
  },
  {
    Favor: '是',
    CellType: 1,
    name: 'Jon Snow',
    age: 26,
    address: 'Ottawa No. 2 Lake Park',
    join: '2016-10-04'
  },
  {
    Favor: '是',
    CellType: 1,
    name: 'John Brown',
    age: 58,
    address: '<b>New York</b> No. 1 Lake Park',
    join: '2016-10-03'
  },
  {
    Favor: '是',
    CellType: 1,
    name: 'Jim Green',
    age: 24,
    address: 'London No. 1 Lake Park',
    join: '2016-10-01'
  },
  {
    Favor: '是',
    CellType: 1,
    name: 'Joe Black',
    age: 30,
    address: 'Sydney No. 1 Lake Park',
    join: '2016-10-02'
  },
  {
    Favor: '是',
    CellType: 1,
    name: 'Jon Snow',
    age: 26,
    address: 'Ottawa No. 2 Lake Park',
    join: '2016-10-04'
  },
  {
    Favor: '是',
    CellType: 1,
    name: 'John Brown',
    age: 18,
    address: '<b>New York</b> No. 1 Lake Park',
    join: '2016-10-03'
  },
  {
    Favor: '是',
    CellType: 1,
    name: 'Jim Green',
    age: 24,
    address: 'London No. 1 Lake Park',
    join: '2016-10-01'
  },
  {
    Favor: '是',
    CellType: 1,
    name: 'Joe Black',
    age: 30,
    address: 'Sydney No. 1 Lake Park',
    join: '2016-10-02'
  },
  {
    Favor: '是',
    CellType: 1,
    name: 'Jon End',
    age: 26,
    address: 'Ottawa No. 2 Lake Park',
    join: '2016-10-04'
  }
];

/**
 * 测试树 数据
 */
const testTreeData = [
  {
    title: '组织',
    key: '1',
    node: { id: 1 },
    children: [
      {
        id: 2,
        title: '组织 1',
        key: '1-1',
        node: { id: 2 },
        children: [
          {
            title: '组织 1-1',
            key: '1-1-1',
            expand: true,
            node: { id: 3 },
            children: [
              {
                title: '组织 1-1-1',
                key: '1-1-1-1',
                node: { id: 4 }
              },
              {
                title: '组织 1-1-2',
                key: '1-1-1-2',
                node: { id: 5 }
              },
              {
                title: '组织 1-1-3',
                key: '1-1-1-3',
                node: { id: 6 }
              }
            ]
          },
          {
            title: '组织 1-2',
            key: '1-1-2',
            node: { id: 7 }
          }
        ]
      },
      {
        title: '组织 2',
        key: '1-2',
        node: { id: 8 },
        children: [
          {
            title: '组织 2-1',
            key: '1-2-1',
            node: { id: 9 }
          },
          {
            title: '组织 2-2',
            key: '1-2-2',
            node: { id: 10 }
          }
        ]
      }
    ]
  },
  {
    title: '角色组 2',
    key: '2',
    node: {
      id: 11
    },
    children: [
      {
        title: '角色组 2-1',
        key: '2-1',
        node: {
          id: 12
        }
      },
      {
        title: '角色组 2-2',
        key: '2-2',
        node: { id: 13 },
        children: []
      }
    ]
  }
];

const testTreeApiData = [
  {
    id: 1,
    title: '架构配置',
    icon: 'icon-xiangmu',
    node: {
      id: 1,
      app_ID: 1,
      current_ID: 1,
      parent_ID: -1,
      treeGuid: '1',
      depth: 0,
      sort: 1,
      hasChild: true,
      classCode: 1,
      nodeCss: 'icon-xiangmu',
      title: '架构配置',
      remark: null,
      sF_ID: 3,
      mUser_ID: 1,
      u_Time: '2021-11-27 14:04:36',
      cmt: null
    },
    children: [
      {
        id: 129,
        title: '组织架构',
        icon: 'xTreeuser',
        children: [],
        node: {
          id: 129,
          app_ID: 1,
          current_ID: 13,
          parent_ID: 1,
          treeGuid: '1.1',
          depth: 1,
          sort: 1,
          hasChild: true,
          classCode: 13,
          nodeCss: 'xTreeuser',
          title: '组织架构',
          remark: '',
          sF_ID: 3,
          mUser_ID: 5,
          u_Time: '2014-07-05 20:49:23',
          cmt: null
        }
      },
      {
        id: 135,
        title: '用户角色组',
        icon: 'icon-qunliao',
        children: [],
        node: {
          id: 135,
          app_ID: 1,
          current_ID: 3,
          parent_ID: 1,
          treeGuid: '1.2',
          depth: 1,
          sort: 2,
          hasChild: true,
          classCode: 3,
          nodeCss: 'icon-qunliao',
          title: '用户角色组',
          remark: null,
          sF_ID: 3,
          mUser_ID: 5,
          u_Time: '2012-09-08 20:27:40',
          cmt: null
        }
      },
      {
        id: 174,
        title: '地理区域架构',
        icon: '',
        children: [],
        node: {
          id: 174,
          app_ID: 1,
          current_ID: 14,
          parent_ID: 1,
          treeGuid: '1.3',
          depth: 1,
          sort: 3,
          hasChild: true,
          classCode: 14,
          nodeCss: '',
          title: '地理区域架构',
          remark: null,
          sF_ID: 3,
          mUser_ID: 5,
          u_Time: '2013-03-04 15:17:56',
          cmt: null
        }
      },
      {
        id: 25816,
        title: '初始化',
        icon: 'icon-qunliao',
        children: null,
        node: {
          id: 25816,
          app_ID: 1,
          current_ID: 1,
          parent_ID: 1,
          treeGuid: '1.6',
          depth: 1,
          sort: 6,
          hasChild: false,
          classCode: 3,
          nodeCss: 'icon-qunliao',
          title: '初始化',
          remark: null,
          sF_ID: 3,
          mUser_ID: 245,
          u_Time: '2015-05-09 16:50:34',
          cmt: null
        }
      }
    ]
  },
  {
    id: 99,
    title: '商品配置',
    icon: 'icon-liwu',
    children: [],
    node: {
      id: 99,
      app_ID: 1,
      current_ID: 10,
      parent_ID: -1,
      treeGuid: '10',
      depth: 0,
      sort: 5,
      hasChild: true,
      classCode: 10,
      nodeCss: 'icon-liwu',
      title: '商品配置',
      remark: null,
      sF_ID: 3,
      mUser_ID: 1,
      u_Time: '2021-11-27 14:04:36',
      cmt: null
    }
  },
  {
    id: 2,
    title: '菜单页面',
    icon: 'icon-xinwen',
    children: [],
    node: {
      id: 2,
      app_ID: 1,
      current_ID: 2,
      parent_ID: -1,
      treeGuid: '2',
      depth: 0,
      sort: 2,
      hasChild: true,
      classCode: 2,
      nodeCss: 'icon-xinwen',
      title: '菜单页面',
      remark: null,
      sF_ID: 3,
      mUser_ID: 1,
      u_Time: '2021-11-27 14:04:36',
      cmt: null
    }
  },
  {
    id: 8078,
    title: '数据扩展',
    icon: 'icon-ziyuan',
    children: [],
    node: {
      id: 8078,
      app_ID: 1,
      current_ID: 20,
      parent_ID: -1,
      treeGuid: '20',
      depth: 0,
      sort: 7,
      hasChild: true,
      classCode: 20,
      nodeCss: 'icon-ziyuan',
      title: '数据扩展',
      remark: null,
      sF_ID: 3,
      mUser_ID: 1,
      u_Time: '2021-11-27 14:04:36',
      cmt: null
    }
  },
  {
    id: 52,
    title: '系统参数配置',
    icon: 'icon-ziyuan',
    children: [],
    node: {
      id: 52,
      app_ID: 1,
      current_ID: 4,
      parent_ID: -1,
      treeGuid: '4',
      depth: 0,
      sort: 4,
      hasChild: true,
      classCode: 4,
      nodeCss: 'icon-ziyuan',
      title: '系统参数配置',
      remark: null,
      sF_ID: 3,
      mUser_ID: 1,
      u_Time: '2021-11-27 14:04:36',
      cmt: null
    }
  },
  {
    id: 1744,
    title: '网站配置',
    icon: '',
    children: [],
    node: {
      id: 1744,
      app_ID: 1,
      current_ID: 16,
      parent_ID: -1,
      treeGuid: '8',
      depth: 0,
      sort: 6,
      hasChild: true,
      classCode: 16,
      nodeCss: '',
      title: '网站配置',
      remark: null,
      sF_ID: 3,
      mUser_ID: 1,
      u_Time: '2021-11-27 14:04:36',
      cmt: null
    }
  }
];

export { testColumns, testTbCol, testTbData, testTreeData, testTreeApiData };
